<?php
class TourController extends Zend_Controller_Action
{
	public function indexAction()
	{
		$define = Zend_Registry::get('define');
		$req = $this->getRequest();
		$tour = My_Model_Tour::getInstance()->getTourByAlias($req->getParam('tour_alias'));
		if($tour) {
			// OK
			$this->view->tour = $tour;
			$tags = My_Model_Tour::getInstance()->getTagsOfTour($tour['tour_id']);
			print_r($tags);		
			$this->view->tags = $tags;
		} else {
			$this->_redirect($define['frontend']['error_404']);
		}
		$this->_helper->viewRenderer->setNoRender();
	}
}